﻿<%@ Page Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true"
    ValidateRequest="false" CodeFile="Assignments_Quiz.aspx.cs" Inherits="Admin_Assignments_Quiz"
    Title="Admin Page - Information Literacy Education" EnableEventValidation="false" %>

<%@ Register TagPrefix="uc" TagName="UpdateProgress" Src="~/UserControls/UpdateProgress.ascx" %>
<%@ Register TagPrefix="uc" TagName="ModalPopupMessage" Src="~/UserControls/ModalPopupMessage.ascx" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="Server">
    <uc:UpdateProgress ID="updateProgress" runat="server" />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <uc:ModalPopupMessage ID="ModalPopupMessage" runat="server" />
        </ContentTemplate>
    </asp:UpdatePanel>

    <script language="javascript" type="text/javascript">
        function SelectAllItems(id)
        {
            var target = document.getElementById(id);
            for(var i = 0; i < target.options.length; i++)
            {
                target.options[i].selected = true;
            }
        }
    </script>

    <h1>
        Manage Quiz Assignment
    </h1>
    <br />
    <asp:Button ID="btnOpenCreateQuizAssignment" runat="server" Text="Create Quiz Assignment"
        Width="200" OnClick="btnOpenCreateQuizAssignment_Click" />
    &nbsp;&nbsp;&nbsp;
    <asp:Button ID="btnOpenEditQuizAssignment" runat="server" Text="Edit Quiz Assignment"
        Width="200" OnClick="btnOpenEditQuizAssignment_Click" />
    <br />
    <br />
    <asp:Panel ID="PanelCreateQuizAssignment" runat="server" Visible="false">
        <h2>
            Create Quiz Assignment
        </h2>
        <div style="margin-left: 15px;">
            <p style="font-style: italic; font-weight: bold;">
                <asp:Label runat="server" ID="lblCreateQuizSelectedSections" Text="Selected Sections: "
                    Visible="false"></asp:Label>
            </p>
            <asp:Wizard ID="WizardCreateQuizAssignment" runat="server" DisplaySideBar="false"
                CssClass="MinWidth" OnActiveStepChanged="WizardCreateQuizAssignment_ActiveStepChanged"
                OnFinishButtonClick="WizardCreateQuizAssignment_FinishButtonClick" NavigationButtonStyle-ForeColor="Black"
                NavigationButtonStyle-CssClass="fancyButton" OnNextButtonClick="WizardCreateQuizAssignment_NextButtonClick">
                <WizardSteps>
                    <asp:WizardStep ID="WizardStep1" runat="server" Title="Step 1">
                        <asp:ObjectDataSource ID="ObjectDataSourceCourses" runat="server" DeleteMethod="DeleteCourse"
                            InsertMethod="InsertCourseSection" OldValuesParameterFormatString="original_{0}"
                            SelectMethod="GetCourses" TypeName="ClassBLL" UpdateMethod="UpdateCourse">
                            <DeleteParameters>
                                <asp:Parameter Name="courseID" Type="Int32" />
                            </DeleteParameters>
                            <UpdateParameters>
                                <asp:Parameter Name="Title" Type="String" />
                                <asp:Parameter Name="Subtitle" Type="String" />
                                <asp:Parameter Name="Introduction" Type="String" />
                                <asp:Parameter Name="IsEnabled" Type="Boolean" />
                                <asp:Parameter Name="CourseID" Type="Int32" />
                            </UpdateParameters>
                            <InsertParameters>
                                <asp:Parameter Name="courseID" Type="Int32" />
                                <asp:Parameter Name="sectionNumber" Type="Int32" />
                                <asp:Parameter Name="useSectionInfo" Type="Boolean" />
                                <asp:Parameter Name="subtitle" Type="String" />
                                <asp:Parameter Name="introduction" Type="String" />
                                <asp:Parameter Name="classTime" Type="String" />
                                <asp:Parameter Name="isEnabled" Type="Boolean" />
                            </InsertParameters>
                        </asp:ObjectDataSource>
                        <asp:GridView ID="GridViewCourses" runat="server" AllowPaging="True" AllowSorting="True"
                            AutoGenerateColumns="False" CellPadding="4" DataKeyNames="CourseID" DataSourceID="ObjectDataSourceCourses"
                            ForeColor="#333333" GridLines="None" CssClass="MinWidth" EmptyDataText="<div class='GridViewNoData'>No Class has been added.<br /><a href='Class.aspx'>Add Class</a></div>"
                            OnSelectedIndexChanged="GridViewCourses_SelectedIndexChanged" Width="800">
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                            <Columns>
                                <asp:CommandField ShowSelectButton="True" />
                                <asp:BoundField DataField="CourseID" HeaderText="ID" InsertVisible="False" ReadOnly="True"
                                    SortExpression="CourseID">
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Title" HeaderText="Class Title" SortExpression="Title" />
                                <asp:BoundField DataField="Subtitle" HeaderText="Class Subtitle" SortExpression="Subtitle" />
                                <asp:CheckBoxField DataField="IsEnabled" HeaderText="Enabled?" SortExpression="IsEnabled">
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:CheckBoxField>
                            </Columns>
                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#999999" />
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        </asp:GridView>
                        <br />
                        <br />
                        <asp:Panel ID="PanelCreateQuizSections" runat="server" Visible="false">
                            <strong>Sections</strong><br />
                            <table>
                                <tr>
                                    <td>
                                        <asp:CheckBox ID="chkboxCreateQuizSectionsShowDisabled" runat="server" Text="Show Disabled Sections"
                                            Font-Size="Smaller" AutoPostBack="true" OnCheckedChanged="chkboxCreateQuizSectionsShowDisabled_CheckedChanged" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div style="float: left;">
                                            <asp:ListBox ID="lstboxSections" runat="server" SelectionMode="Multiple" Width="100"
                                                EnableViewState="true">
                                                <asp:ListItem>---Sections---</asp:ListItem>
                                                <asp:ListItem>Please Select a Course First</asp:ListItem>
                                            </asp:ListBox>
                                            <br />
                                            <a href="javascript: SelectAllItems('<%=lstboxSections.ClientID %>');">Select All Sections</a>
                                        </div>
                                        <div style="padding-left: 10px; float: left;">
                                            Enter sections in text form. <i>e.g. 1, 4-7, 9-11, 15</i><br />
                                            <asp:TextBox ID="txtSections" runat="server" AutoPostBack="true" OnTextChanged="txtSections_TextChanged"
                                                Width="300"></asp:TextBox>
                                            <br />
                                            Quizzes can be assigned to multiple sections.<br />
                                            Use the Ctrl key to select multiple sections.
                                        </div>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <strong>Standards</strong>
                            <asp:RadioButtonList ID="RadioButtonListStandardID" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="1" Selected="True">Getting Started</asp:ListItem>
                                <asp:ListItem Value="2">Finding Sources</asp:ListItem>
                                <asp:ListItem Value="3">Evaluating Sources</asp:ListItem>
                                <asp:ListItem Value="4">Writing with Sources</asp:ListItem>
                            </asp:RadioButtonList>
                        </asp:Panel>
                    </asp:WizardStep>
                    <asp:WizardStep ID="WizardStep2" runat="server" Title="Step 2">
                        <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                            <ContentTemplate>
                                <div style="font-size: medium;">
                                    Quiz questions will be drawn from the learning objects assigned to Section&nbsp;
                                    <asp:Label ID="lblModelSection" runat="server" />.
                                    <asp:LinkButton ID="lnkModelSectionAdvanced" runat="server" Font-Size="Smaller" OnClick="lnkModelSectionAdvanced_Click"
                                        Text="Change" />
                                    <br />
                                    <asp:Panel ID="PanelModelSectionDropDownList" runat="server" Visible="false">
                                        <table>
                                            <tr>
                                                <td class="tableLeftHeader">
                                                    Section:
                                                </td>
                                                <td class="tableItem" style="width: 100px;">
                                                    <asp:DropDownList ID="ddlistModelSection" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlistModelSection_SelectedIndexChanged" />
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                    <br />
                                    <div>
                                        <ul>
                                            <asp:Label ID="lblCreateQuizUseClassDefault" runat="server" />
                                            <asp:Label ID="lblCreateQuizAvailableQuizSets" runat="server" />
                                            <asp:Label ID="lblCreateQuizConflict" runat="server" />
                                        </ul>
                                    </div>
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </asp:WizardStep>
                    <asp:WizardStep ID="WizardStep3" runat="server" Title="Step 3">
                        <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                            <ContentTemplate>
                                * Require or Exclude questions from the quiz using the form below.
                                <br />
                                <br />
                                <table>
                                    <tr>
                                        <td class="tableLeftHeader">
                                            Filter by Quiz Set:
                                        </td>
                                        <td class="tableItem">
                                            <asp:DropDownList ID="ddlistQuestionFilterByQuizSet" runat="server" AutoPostBack="true"
                                                OnSelectedIndexChanged="ddlistQuestionFilterByQuizSet_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                </table>
                                <br />
                                <asp:XmlDataSource ID="XmlDataSourceQuestions" runat="server" XPath="quizassignment/questions/question" />
                                <asp:Repeater ID="RepeaterQuestions" runat="server" DataSourceID="XmlDataSourceQuestions"
                                    OnItemDataBound="RepeaterQuestions_ItemDataBound" Visible="false">
                                    <HeaderTemplate>
                                        <h4>
                                            Questions</h4>
                                        <table style="min-width: 580px; border-spacing: 0px;">
                                            <tr>
                                                <td class="tableTopHeader" style="width: 30px;">
                                                    Req.
                                                </td>
                                                <td class="tableTopHeader" style="width: 30px;">
                                                    Exc.
                                                </td>
                                                <td class="tableTopHeader" style="width: 0px;">
                                                </td>
                                                <td class="tableTopHeader" style="width: 0px;">
                                                </td>
                                                <td class="tableTopHeader">
                                                </td>
                                                <td class="tableTopHeader" style="width: 100px;">
                                                    Stats
                                                </td>
                                            </tr>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <tr>
                                            <td style="text-align: center; vertical-align: top;">
                                                <asp:CheckBox ID="chkboxRequired" runat="server" CssClass="HiddenText" Text='<%# XPath("@learnobjid").ToString() + ";" + XPath("@id").ToString()%>'
                                                    AutoPostBack="true" Checked='<%# Convert.ToBoolean(XPath("@defaultrequired").ToString()) %>'
                                                    OnCheckedChanged="chkboxRequired_CheckedChanged" />
                                                <ajaxToolkit:MutuallyExclusiveCheckBoxExtender ID="MutuallyExclusiveCheckBoxExtender1"
                                                    runat="server" TargetControlID="chkboxRequired" Key='<%# XPath("@learnobjid").ToString() + "-" + XPath("@id").ToString() %>' />
                                            </td>
                                            <td style="text-align: center; vertical-align: top;">
                                                <asp:CheckBox ID="chkboxExcluded" runat="server" CssClass="HiddenText" Text='<%# XPath("@learnobjid").ToString() + ";" + XPath("@id").ToString()%>'
                                                    AutoPostBack="true" Checked='<%# Convert.ToBoolean(XPath("@excluded").ToString()) %>'
                                                    OnCheckedChanged="chkboxExcluded_CheckedChanged" />
                                                <ajaxToolkit:MutuallyExclusiveCheckBoxExtender ID="MutuallyExclusiveCheckBoxExtender2"
                                                    runat="server" TargetControlID="chkboxExcluded" Key='<%# XPath("@learnobjid").ToString() + "-" + XPath("@id").ToString() %>' />
                                            </td>
                                            <td style="text-align: center; vertical-align: top;">
                                                <asp:DropDownList ID="ddlistDifficulty" runat="server" ToolTip='<%# XPath("@learnobjid").ToString() + ";" + XPath("@id").ToString()%>'
                                                    AutoPostBack="true" OnSelectedIndexChanged="ddlistDifficulty_SelectedIndexChanged"
                                                    OnDataBound="ddlistDifficulty_DataBound" Visible="false">
                                                    <asp:ListItem Value="easy">Easy</asp:ListItem>
                                                    <asp:ListItem Value="normal">Normal</asp:ListItem>
                                                    <asp:ListItem Value="hard">Hard</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td style="text-align: center; vertical-align: top; visibility: hidden;">
                                                <asp:DropDownList ID="ddlistPoint" runat="server" ToolTip='<%# XPath("@learnobjid").ToString() + ";" + XPath("@id").ToString()%>'
                                                    OnDataBound="ddlistPoint_DataBound" Visible="false" AutoPostBack="true" OnSelectedIndexChanged="ddlistPoint_SelectedIndexChanged">
                                                    <asp:ListItem>1</asp:ListItem>
                                                    <asp:ListItem>2</asp:ListItem>
                                                    <asp:ListItem>3</asp:ListItem>
                                                    <asp:ListItem>4</asp:ListItem>
                                                    <asp:ListItem>5</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td>
                                                <%# XPath("questiontext") %>
                                            </td>
                                            <td style="text-align: center;">
                                                <%# GetQuestionStats(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id")), true)%>/<%# GetQuestionStats(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id")), false) + GetQuestionStats(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id")), true)%>
                                                &nbsp;
                                                <%# GetQuestionStatsPercentage(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id"))).ToString("P")%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            </td>
                                            <td>
                                            </td>
                                            <td>
                                            </td>
                                            <td>
                                            </td>
                                            <td>
                                                <asp:Repeater ID="RepeaterChoices" runat="server" DataSource='<%# XPathSelect("choices/choice") %>'>
                                                    <HeaderTemplate>
                                                        <ul>
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <li>
                                                            <%# XPath(".") %>
                                                            &nbsp;
                                                            <asp:Image ID="imgCorrectAnswer" runat="server" ImageUrl="~/Images/correct_answer.gif"
                                                                Visible='<%# Convert.ToBoolean(XPath("@iscorrectanswer").ToString()) %>' />
                                                        </li>
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        </ul>
                                                    </FooterTemplate>
                                                </asp:Repeater>
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                    <AlternatingItemTemplate>
                                        <tr style="background-color: #EEE;">
                                            <td style="text-align: center; vertical-align: top;">
                                                <asp:CheckBox ID="chkboxRequired" runat="server" CssClass="HiddenText" Text='<%# XPath("@learnobjid").ToString() + ";" + XPath("@id").ToString()%>'
                                                    AutoPostBack="true" Checked='<%# Convert.ToBoolean(XPath("@defaultrequired").ToString()) %>'
                                                    OnCheckedChanged="chkboxRequired_CheckedChanged" />
                                                <ajaxToolkit:MutuallyExclusiveCheckBoxExtender ID="MutuallyExclusiveCheckBoxExtender1"
                                                    runat="server" TargetControlID="chkboxRequired" Key='<%# XPath("@learnobjid").ToString() + "-" + XPath("@id").ToString() %>' />
                                            </td>
                                            <td style="text-align: center; vertical-align: top;">
                                                <asp:CheckBox ID="chkboxExcluded" runat="server" CssClass="HiddenText" Text='<%# XPath("@learnobjid").ToString() + ";" + XPath("@id").ToString()%>'
                                                    AutoPostBack="true" Checked='<%# Convert.ToBoolean(XPath("@excluded").ToString()) %>'
                                                    OnCheckedChanged="chkboxExcluded_CheckedChanged" />
                                                <ajaxToolkit:MutuallyExclusiveCheckBoxExtender ID="MutuallyExclusiveCheckBoxExtender2"
                                                    runat="server" TargetControlID="chkboxExcluded" Key='<%# XPath("@learnobjid").ToString() + "-" + XPath("@id").ToString() %>' />
                                            </td>
                                            <td style="text-align: center; vertical-align: top;">
                                                <asp:DropDownList ID="ddlistDifficulty" runat="server" ToolTip='<%# XPath("@learnobjid").ToString() + ";" + XPath("@id").ToString()%>'
                                                    AutoPostBack="true" OnSelectedIndexChanged="ddlistDifficulty_SelectedIndexChanged"
                                                    OnDataBound="ddlistDifficulty_DataBound" Visible="false">
                                                    <asp:ListItem Value="easy">Easy</asp:ListItem>
                                                    <asp:ListItem Value="normal">Normal</asp:ListItem>
                                                    <asp:ListItem Value="hard">Hard</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td style="text-align: center; vertical-align: top;">
                                                <asp:DropDownList ID="ddlistPoint" runat="server" ToolTip='<%# XPath("@learnobjid").ToString() + ";" + XPath("@id").ToString()%>'
                                                    OnDataBound="ddlistPoint_DataBound" Visible="false" AutoPostBack="true" OnSelectedIndexChanged="ddlistPoint_SelectedIndexChanged">
                                                    <asp:ListItem>1</asp:ListItem>
                                                    <asp:ListItem>2</asp:ListItem>
                                                    <asp:ListItem>3</asp:ListItem>
                                                    <asp:ListItem>4</asp:ListItem>
                                                    <asp:ListItem>5</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td>
                                                <%# XPath("questiontext") %>
                                            </td>
                                            <td style="text-align: center;">
                                                <%# GetQuestionStats(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id")), true)%>/<%# GetQuestionStats(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id")), false) + GetQuestionStats(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id")), true)%>
                                                &nbsp;
                                                <%# GetQuestionStatsPercentage(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id"))).ToString("P")%>
                                            </td>
                                        </tr>
                                        <tr style="background-color: #EEE;">
                                            <td>
                                            </td>
                                            <td>
                                            </td>
                                            <td>
                                            </td>
                                            <td>
                                            </td>
                                            <td>
                                                <asp:Repeater ID="RepeaterChoices" runat="server" DataSource='<%# XPathSelect("choices/choice") %>'>
                                                    <HeaderTemplate>
                                                        <ul>
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <li>
                                                            <%# XPath(".") %>
                                                            &nbsp;
                                                            <asp:Image ID="imgCorrectAnswer" runat="server" ImageUrl="~/Images/correct_answer.gif"
                                                                Visible='<%# Convert.ToBoolean(XPath("@iscorrectanswer").ToString()) %>' />
                                                        </li>
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        </ul>
                                                    </FooterTemplate>
                                                </asp:Repeater>
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                    </AlternatingItemTemplate>
                                    <FooterTemplate>
                                        </table>
                                    </FooterTemplate>
                                </asp:Repeater>
                                <br />
                                <div>
                                    <asp:Button ID="btnCreateQuizJumpToAddCustomQuestions" runat="server" Text="Go to Add New Custom Questions"
                                        OnClick="btnCreateQuizJumpToAddCustomQuestions_Click" />
                                </div>
                            </ContentTemplate>
                            <Triggers>
                                <asp:PostBackTrigger ControlID="btnCreateQuizJumpToAddCustomQuestions" />
                            </Triggers>
                        </asp:UpdatePanel>
                    </asp:WizardStep>
                    <asp:WizardStep ID="WizardStep4" runat="server" Title="Step 4">
                        <div style="margin-left: 10px;">
                            <b>Note:</b> Custom questions will be added for this assignment only.
                            <br />
                            <br />
                            <asp:Button ID="btnAddNewCustomQuestion" runat="server" Text="Add a New Custom Question"
                                Width="250" OnClick="btnAddNewCustomQuestion_Click" />
                            <br />
                            <br />
                            <asp:Panel ID="PanelAddCustomQuestions" runat="server" Visible="false">
                                <div>
                                    <b>Questions:</b>
                                    <asp:DropDownList ID="ddlistCustomQuestionsList" runat="server" AutoPostBack="true"
                                        OnSelectedIndexChanged="ddlistCustomQuestionsList_SelectedIndexChanged" />
                                </div>
                                <br />
                                <div style="width: 500px; margin-left: 10px;">
                                    <b>Required: </b>
                                    <asp:CheckBox ID="chkboxCustomQuestionRequired" runat="server" />
                                    &nbsp;&nbsp;&nbsp;
                                    <div style="display: none;">
                                        <b>Difficulty:</b>
                                        <asp:DropDownList ID="ddlistCustomQuestionDifficulty" runat="server">
                                            <asp:ListItem Value="easy" Text="Easy" />
                                            <asp:ListItem Value="normal" Text="Normal" Selected="True" />
                                            <asp:ListItem Value="hard" Text="Hard" />
                                        </asp:DropDownList>
                                        &nbsp;&nbsp;&nbsp; <b>Point:</b>
                                        <asp:DropDownList ID="ddlistCustomQuestionPoint" runat="server">
                                            <asp:ListItem Value="1" Text="1" Selected="True"></asp:ListItem>
                                            <asp:ListItem Value="2" Text="2"></asp:ListItem>
                                            <asp:ListItem Value="3" Text="3"></asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                    <br />
                                    <b>Question:</b><br />
                                    <FCKeditorV2:FCKeditor ID="txtCustomQuestionText" runat="server" ToolbarSet="Basic"
                                        BasePath="~/fckeditor/" Height="150px" Width="400px" HtmlEncodeOutput="true" />
                                    <br />
                                    <b>Choice #1:</b><br />
                                    <asp:TextBox ID="txtCustomQuestionChoice1" runat="server" Width="200px" MaxLength="100" /><br />
                                    <asp:CheckBox ID="chkCustomQuestionAnswer1" runat="server" />
                                    Is this a correct answer?<br />
                                    <b>Choice #2:</b><br />
                                    <asp:TextBox ID="txtCustomQuestionChoice2" runat="server" Width="200px" MaxLength="100" /><br />
                                    <asp:CheckBox ID="chkCustomQuestionAnswer2" runat="server" />
                                    Is this a correct answer?<br />
                                    <b>Choice #3:</b><br />
                                    <asp:TextBox ID="txtCustomQuestionChoice3" runat="server" Width="200px" MaxLength="100" /><br />
                                    <asp:CheckBox ID="chkCustomQuestionAnswer3" runat="server" />
                                    Is this a correct answer?<br />
                                    <b>Choice #4:</b><br />
                                    <asp:TextBox ID="txtCustomQuestionChoice4" runat="server" Width="200px" MaxLength="100" /><br />
                                    <asp:CheckBox ID="chkCustomQuestionAnswer4" runat="server" />
                                    Is this a correct answer?<br />
                                    <b>Choice #5:</b><br />
                                    <asp:TextBox ID="txtCustomQuestionChoice5" runat="server" Width="200px" MaxLength="100" /><br />
                                    <asp:CheckBox ID="chkCustomQuestionAnswer5" runat="server" />
                                    Is this a correct answer?<br />
                                    <br />
                                    <br />
                                    <asp:Button ID="btnUpdateCustomQuestion" runat="server" Text="Update Question" Width="200"
                                        OnClick="btnUpdateCustomQuestion_Click" />
                                    &nbsp;&nbsp;
                                    <asp:Button ID="btnDeleteCustomQuestion" runat="server" Text="Delete Question" Width="200"
                                        OnClick="btnDeleteCustomQuestion_Click" />
                                    <ajaxToolkit:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" TargetControlID="btnDeleteCustomQuestion"
                                        ConfirmText="Are you sure you want to delete the question?" />
                                </div>
                            </asp:Panel>
                        </div>
                    </asp:WizardStep>
                    <asp:WizardStep ID="WizardStep5" runat="server" Title="Step 5">
                        <div style="margin-left: 10px;">
                            <h3>
                                Overview of Quiz Questions</h3>
                            <table>
                                <tr>
                                    <td class="tableLeftHeader" style="width: 120px;">
                                        Filter by Quiz Set :
                                    </td>
                                    <td class="tableItem">
                                        <asp:DropDownList ID="ddlistQuestionsOverviewFilterByQuizSet" runat="server" AutoPostBack="true"
                                            OnSelectedIndexChanged="ddlistQuestionsOverviewFilterByQuizSet_SelectedIndexChanged" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableLeftHeader" style="width: 120px;">
                                        Show :
                                    </td>
                                    <td class="tableItem">
                                        <asp:RadioButtonList ID="rdbtnQuestionsOverviewFilter" runat="server" RepeatDirection="Horizontal"
                                            AutoPostBack="true" OnSelectedIndexChanged="rdbtnQuestionsOverviewFilter_SelectedIndexChanged">
                                            <asp:ListItem Selected="True" Value="0">All</asp:ListItem>
                                            <asp:ListItem Value="1">Except Excluded</asp:ListItem>
                                            <asp:ListItem Value="2">Only Required</asp:ListItem>
                                            <asp:ListItem Value="3">Only Excluded</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                            </table>
                            <asp:XmlDataSource ID="XmlDataSourceQuestionsOverview" runat="server" XPath="quizassignment/questions/question" />
                            <asp:Repeater ID="RepeaterQuestionsOverview" runat="server" DataSourceID="XmlDataSourceQuestionsOverview">
                                <HeaderTemplate>
                                    <table style="min-width: 600px; border-spacing: 0px;">
                                        <tr>
                                            <td class="tableTopHeader" style="width: 30px;">
                                                Req.
                                            </td>
                                            <td class="tableTopHeader" style="width: 30px;">
                                                Exc.
                                            </td>
                                            <td class="tableTopHeader">
                                            </td>
                                            <td class="tableTopHeader" style="width: 100px;">
                                                Stats
                                            </td>
                                        </tr>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <tr>
                                        <td style="text-align: center; vertical-align: top;">
                                            <asp:CheckBox ID="chkboxRequiredOverview" runat="server" CssClass="HiddenText" Text='<%# XPath("@learnobjid").ToString() + ";" + XPath("@id").ToString()%>'
                                                Checked='<%# Convert.ToBoolean(XPath("@defaultrequired").ToString()) %>' Enabled="false" />
                                        </td>
                                        <td style="text-align: center; vertical-align: top;">
                                            <asp:CheckBox ID="chkboxExcludedOverview" runat="server" CssClass="HiddenText" Text='<%# XPath("@learnobjid").ToString() + ";" + XPath("@id").ToString()%>'
                                                Checked='<%# Convert.ToBoolean(XPath("@excluded").ToString()) %>' Enabled="false" />
                                        </td>
                                        <td>
                                            <%# XPath("questiontext") %>
                                        </td>
                                        <td style="text-align: center; vertical-align: top;">
                                            <%# GetQuestionStats(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id")), true)%>
                                            /<%# GetQuestionStats(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id")), false) + GetQuestionStats(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id")), true)%>
                                            &nbsp;
                                            <%# GetQuestionStatsPercentage(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id"))).ToString("P")%>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                        </td>
                                        <td>
                                        </td>
                                        <td>
                                            <asp:Repeater ID="RepeaterChoices" runat="server" DataSource='<%# XPathSelect("choices/choice") %>'>
                                                <HeaderTemplate>
                                                    <ul>
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <li>
                                                        <%# XPath(".") %>
                                                        &nbsp;
                                                        <asp:Image ID="imgCorrectAnswer" runat="server" ImageUrl="~/Images/correct_answer.gif"
                                                            Visible='<%# Convert.ToBoolean(XPath("@iscorrectanswer").ToString()) %>' />
                                                    </li>
                                                </ItemTemplate>
                                                <FooterTemplate>
                                                    </ul>
                                                </FooterTemplate>
                                            </asp:Repeater>
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                                <AlternatingItemTemplate>
                                    <tr style="background-color: #EEE;">
                                        <td style="text-align: center;">
                                            <asp:CheckBox ID="chkboxRequiredOverview" runat="server" CssClass="HiddenText" Text='<%# XPath("@learnobjid").ToString() + ";" + XPath("@id").ToString()%>'
                                                Checked='<%# Convert.ToBoolean(XPath("@defaultrequired").ToString()) %>' Enabled="false" />
                                        </td>
                                        <td style="text-align: center;">
                                            <asp:CheckBox ID="chkboxExcludedOverview" runat="server" CssClass="HiddenText" Text='<%# XPath("@learnobjid").ToString() + ";" + XPath("@id").ToString()%>'
                                                Checked='<%# Convert.ToBoolean(XPath("@excluded").ToString()) %>' Enabled="false" />
                                        </td>
                                        <td>
                                            <%# XPath("questiontext") %>
                                        </td>
                                        <td style="text-align: center;">
                                            <%# GetQuestionStats(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id")), true)%>
                                            /<%# GetQuestionStats(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id")), false) + GetQuestionStats(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id")), true)%>
                                            &nbsp;
                                            <%# GetQuestionStatsPercentage(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id"))).ToString("P")%>
                                        </td>
                                    </tr>
                                    <tr style="background-color: #EEE;">
                                        <td>
                                        </td>
                                        <td>
                                        </td>
                                        <td>
                                            <asp:Repeater ID="RepeaterChoices" runat="server" DataSource='<%# XPathSelect("choices/choice") %>'>
                                                <HeaderTemplate>
                                                    <ul>
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <li>
                                                        <%# XPath(".") %>
                                                        &nbsp;
                                                        <asp:Image ID="imgCorrectAnswer" runat="server" ImageUrl="~/Images/correct_answer.gif"
                                                            Visible='<%# Convert.ToBoolean(XPath("@iscorrectanswer").ToString()) %>' />
                                                    </li>
                                                </ItemTemplate>
                                                <FooterTemplate>
                                                    </ul>
                                                </FooterTemplate>
                                            </asp:Repeater>
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                </AlternatingItemTemplate>
                                <FooterTemplate>
                                    </table>
                                </FooterTemplate>
                            </asp:Repeater>
                        </div>
                    </asp:WizardStep>
                    <asp:WizardStep ID="WizardStep6" runat="server" Title="Step 6">
                        <div style="margin-left: 10px;">
                            <table style="min-width: 600px; border-spacing: 0px;">
                                <tr>
                                    <td class="tableLeftHeader">
                                        Assignment Name :
                                    </td>
                                    <td class="tableItem">
                                        <asp:TextBox ID="txtGeneralQuizAssignmentName" runat="server" Width="400" MaxLength="100" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableLeftHeader">
                                        Assignment Directions :
                                    </td>
                                    <td class="tableItem">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <FCKeditorV2:FCKeditor ID="txtGeneralQuizAssignmentDirections" runat="server" ToolbarSet="ILE_Admin"
                                            BasePath="~/fckeditor/" Height="300px" Width="700px" HtmlEncodeOutput="false" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableLeftHeader">
                                        <!-- *SteveMsg -->
                                        Total Number of Questions :
                                    </td>
                                    <td class="tableItem">
                                        <asp:DropDownList ID="ddlistGeneralNumberOfQuestionsToGenerate" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableLeftHeader">
                                        <!-- *SteveMsg -->
                                        Number of Attempts :
                                    </td>
                                    <td class="tableItem">
                                        <asp:DropDownList ID="ddlistGeneralNumberOfAttempts" runat="server">
                                            <asp:ListItem Value="1" Selected="True">1</asp:ListItem>
                                            <asp:ListItem Value="2">2</asp:ListItem>
                                            <asp:ListItem Value="3">3</asp:ListItem>
                                            <asp:ListItem Value="4">4</asp:ListItem>
                                            <asp:ListItem Value="5">5</asp:ListItem>
                                            <asp:ListItem Value="6">6</asp:ListItem>
                                            <asp:ListItem Value="7">7</asp:ListItem>
                                            <asp:ListItem Value="8">8</asp:ListItem>
                                            <asp:ListItem Value="9">9</asp:ListItem>
                                            <asp:ListItem Value="10">10</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableLeftHeader">
                                        <!-- *SteveMsg -->
                                        Start Date :
                                    </td>
                                    <td class="tableItem">
                                        <asp:TextBox ID="txtGeneralStartDate" runat="server" MaxLength="1" Style="text-align: justify"
                                            ValidationGroup="QuizGeneral" />
                                        <asp:ImageButton ID="imgbtnGeneralStartDate" runat="server" ImageUrl="~/Images/calendarIcon.png"
                                            CausesValidation="False" />
                                        <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="txtGeneralStartDate"
                                            Mask="99/99/9999" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus"
                                            OnInvalidCssClass="MaskedEditError" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"
                                            ErrorTooltipEnabled="True" />
                                        <ajaxToolkit:MaskedEditValidator ID="MaskedEditValidator1" runat="server" ControlExtender="MaskedEditExtender1"
                                            ControlToValidate="txtGeneralStartDate" EmptyValueMessage="Start Date is required"
                                            InvalidValueMessage="Start Date is invalid" Display="Dynamic" TooltipMessage="Input a start date"
                                            EmptyValueBlurredText="*" InvalidValueBlurredMessage="*" ValidationGroup="General" />
                                        <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtGeneralStartDate"
                                            PopupButtonID="imgbtnGeneralStartDate" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
                                            ControlToValidate="txtGeneralStartDate" Display="Dynamic" ValidationGroup="General" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableLeftHeader">
                                        <!-- *SteveMsg -->
                                        Start Time :
                                    </td>
                                    <td class="tableItem">
                                        <asp:TextBox ID="txtGeneralStartDateTime" runat="server" Width="60px" Text="06:00 AM"
                                            ValidationGroup="General" />
                                        <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender3" runat="server" TargetControlID="txtGeneralStartDateTime"
                                            Mask="99:99" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError"
                                            MaskType="Time" AcceptAMPM="True" ErrorTooltipEnabled="True" />
                                        <ajaxToolkit:MaskedEditValidator ID="MaskedEditValidator3" runat="server" ControlExtender="MaskedEditExtender3"
                                            ControlToValidate="txtGeneralStartDateTime" IsValidEmpty="False" EmptyValueMessage="Time is required"
                                            InvalidValueMessage="Time is invalid" Display="Dynamic" TooltipMessage="Input a time"
                                            EmptyValueBlurredText="*" InvalidValueBlurredMessage="*" ValidationGroup="General" />
                                        <span style="font-size: smaller; font-style: italic;">Type 'P' to make it PM and 'A'
                                            to make it AM.</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableLeftHeader">
                                        <!-- *SteveMsg -->
                                        End Date :
                                    </td>
                                    <td class="tableItem">
                                        <asp:TextBox ID="txtGeneralEndDate" runat="server" MaxLength="1" Style="text-align: justify"
                                            ValidationGroup="QuizGeneral" />
                                        <asp:ImageButton ID="imgbtnGeneralEndDate" runat="server" ImageUrl="~/Images/calendarIcon.png"
                                            CausesValidation="False" />
                                        <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender2" runat="server" TargetControlID="txtGeneralEndDate"
                                            Mask="99/99/9999" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus"
                                            OnInvalidCssClass="MaskedEditError" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"
                                            ErrorTooltipEnabled="True" />
                                        <ajaxToolkit:MaskedEditValidator ID="MaskedEditValidator2" runat="server" ControlExtender="MaskedEditExtender2"
                                            ControlToValidate="txtGeneralEndDate" EmptyValueMessage="End Date is required"
                                            InvalidValueMessage="End Date is invalid" Display="Dynamic" TooltipMessage="Input a End date"
                                            EmptyValueBlurredText="*" InvalidValueBlurredMessage="*" ValidationGroup="General" />
                                        <ajaxToolkit:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtGeneralEndDate"
                                            PopupButtonID="imgbtnGeneralEndDate" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*"
                                            ControlToValidate="txtGeneralEndDate" Display="Dynamic" ValidationGroup="General" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableLeftHeader">
                                        <!-- *SteveMsg -->
                                        End Time :
                                    </td>
                                    <td class="tableItem">
                                        <asp:TextBox ID="txtGeneralEndDateTime" runat="server" Width="60px" Text="11:59 PM"
                                            ValidationGroup="General" />
                                        <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender4" runat="server" TargetControlID="txtGeneralEndDateTime"
                                            Mask="99:99" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError"
                                            MaskType="Time" AcceptAMPM="True" ErrorTooltipEnabled="True" />
                                        <ajaxToolkit:MaskedEditValidator ID="MaskedEditValidator4" runat="server" ControlExtender="MaskedEditExtender4"
                                            ControlToValidate="txtGeneralEndDateTime" IsValidEmpty="False" EmptyValueMessage="Time is required"
                                            InvalidValueMessage="Time is invalid" Display="Dynamic" TooltipMessage="Input a time"
                                            EmptyValueBlurredText="*" InvalidValueBlurredMessage="*" ValidationGroup="General" />
                                        <span style="font-size: smaller; font-style: italic;">Use '11:59 PM' instead of 12:00
                                            AM for Midnight.</span>
                                    </td>
                                </tr>
                                <tr style="display: none;">
                                    <td class="tableLeftHeader">
                                        <!-- *SteveMsg -->
                                        Send Notification Email :
                                    </td>
                                    <td class="tableItem">
                                        <asp:CheckBox ID="chkboxGeneralSendNotificationEmail" runat="server" AutoPostBack="true"
                                            OnCheckedChanged="chkboxGeneralSendNotificationEmail_CheckedChanged" />
                                    </td>
                                </tr>
                                <asp:Panel ID="PanelGeneralSendNotificationEmailOption" runat="server" Visible="false">
                                    <tr>
                                        <td colspan="2" style="padding-left: 20px;">
                                            <table>
                                                <tr>
                                                    <td class="tableLeftHeader">
                                                        When Quiz Starts :
                                                    </td>
                                                    <td class="tableItem">
                                                        <asp:CheckBox ID="chkboxGeneralSendNotificationEmailQuizStart" runat="server" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="tableLeftHeader">
                                                        When Quiz Ends :
                                                    </td>
                                                    <td class="tableItem">
                                                        <asp:CheckBox ID="chkboxGeneralSendNotificationEmailQuizEnd" runat="server" />
                                                        &nbsp;&nbsp;
                                                        <asp:TextBox ID="txtGeneralSendNotificationEmailQuizEndHours" runat="server" MaxLength="2"
                                                            Width="30" Text="24" />
                                                        hours before.
                                                        <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server"
                                                            FilterMode="ValidChars" FilterType="Numbers" TargetControlID="txtGeneralSendNotificationEmailQuizEndHours" />
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                                                            ControlToValidate="txtGeneralSendNotificationEmailQuizEndHours" ValidationGroup="General" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </asp:Panel>
                                <tr style="display: none;">
                                    <td class="tableLeftHeader">
                                        Send Quiz Results :
                                    </td>
                                    <td class="tableItem">
                                        <asp:CheckBox ID="chkboxGeneralSendQuizResult" runat="server" Checked="false" />
                                        &nbsp;<span style="font-size: smaller; font-style: italic;">When checked, student quiz
                                            results will be automatically sent after the due date.</span>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </asp:WizardStep>
                </WizardSteps>
                <NavigationButtonStyle CssClass="fancyButton" ForeColor="Black" />
            </asp:Wizard>
        </div>
    </asp:Panel>
    <asp:Panel ID="PanelEditQuizAssignment" runat="server" Visible="false">
        <h2>
            Edit Quiz Assignment
        </h2>
        <div style="margin-left: 15px;">
            <p style="font-style: italic; font-weight: bold;">
                <asp:Label runat="server" ID="lblEditQuizSelectedSections" Text="Selected Sections: "
                    Visible="false"></asp:Label>
            </p>
            <asp:Wizard ID="WizardEditQuizAssignment" runat="server" DisplaySideBar="false" Visible="true"
                CssClass="MinWidth" NavigationButtonStyle-CssClass="fancyButton" NavigationButtonStyle-ForeColor="Black"
                OnActiveStepChanged="WizardEditQuizAssignment_ActiveStepChanged" OnFinishButtonClick="WizardEditQuizAssignment_FinishButtonClick"
                OnNextButtonClick="WizardEditQuizAssignment_NextButtonClick">
                <WizardSteps>
                    <asp:WizardStep ID="WizardStep7" runat="server" Title="Step 1">
                        <asp:ObjectDataSource ID="ObjectDataSourceAssignments" runat="server" OldValuesParameterFormatString="original_{0}"
                            SelectMethod="GetAssignmentsByType" TypeName="AssignmentsBLL">
                            <SelectParameters>
                                <asp:Parameter DefaultValue="Quiz" Name="Type" Type="String" />
                            </SelectParameters>
                        </asp:ObjectDataSource>
                        <asp:GridView ID="GridViewAssignments" runat="server" AllowPaging="True" AllowSorting="True"
                            AutoGenerateColumns="False" CellPadding="4" DataKeyNames="AssignmentID" DataSourceID="ObjectDataSourceAssignments"
                            ForeColor="#333333" GridLines="None" CssClass="MinWidth" EmptyDataText="<div class='GridViewNoData'>No Data</div>"
                            OnSelectedIndexChanged="GridViewAssignments_SelectedIndexChanged" OnLoad="GridViewAssignments_Load" Width="800">
                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                            <Columns>
                                <asp:CommandField ShowSelectButton="True" />
                                <asp:BoundField DataField="AssignmentID" HeaderText="ID" InsertVisible="False" ReadOnly="True"
                                    SortExpression="AssignmentID" />
                                <asp:BoundField DataField="AssignmentTitle" HeaderText="Title" SortExpression="AssignmentTitle" />
                                <asp:BoundField DataField="StartDateTime" HeaderText="StartDateTime" SortExpression="StartDateTime">
                                    <HeaderStyle HorizontalAlign="Center" />
                                    <ItemStyle Font-Size="Smaller" HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="EndDateTime" HeaderText="EndDateTime" SortExpression="EndDateTime">
                                    <HeaderStyle HorizontalAlign="Center" />
                                    <ItemStyle Font-Size="Smaller" HorizontalAlign="Center" />
                                </asp:BoundField>
                            </Columns>
                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#999999" />
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        </asp:GridView>
                        <br />
                        <asp:Panel ID="PanelEditQuizSections" runat="server" Visible="false">
                            <strong>Class</strong><br />
                            <div style="padding-left: 10px;">
                                This quiz is assgined to <b>
                                    <asp:Label ID="lblEditClass" runat="server" /></b>
                            </div>
                            <br />
                            <strong>Sections</strong><br />
                            <table>
                                <tr>
                                    <td>
                                        <div style="float: left;">
                                            <asp:ListBox ID="lstboxEditSections" runat="server" SelectionMode="Multiple" Width="100">
                                                <asp:ListItem>---Sections---</asp:ListItem>
                                                <asp:ListItem>Please Select a Course First</asp:ListItem>
                                            </asp:ListBox>
                                        </div>
                                        <div style="padding-left: 10px; float: left;">
                                            Enter sections in text form. <i>e.g. 1, 4-7, 9-11, 15</i><br />
                                            <asp:TextBox ID="txtEditSections" runat="server" AutoPostBack="true" OnTextChanged="txtEditSections_TextChanged"
                                                Width="300"></asp:TextBox>
                                            <br />
                                            Quizzes can be assigned to multiple sections.<br />
                                            Use the Ctrl key to select multiple sections.
                                        </div>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <strong>Standards</strong>
                            <asp:RadioButtonList ID="RadioButtonListEditStandardID" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="1">Getting Started</asp:ListItem>
                                <asp:ListItem Value="2">Finding Sources</asp:ListItem>
                                <asp:ListItem Value="3">Evaluating Sources</asp:ListItem>
                                <asp:ListItem Value="4">Writing with Sources</asp:ListItem>
                            </asp:RadioButtonList>
                            <br />
                            <div style="width: 100%; text-align: right;">
                                <asp:Button ID="btnEditJumpToDetails" runat="server" Text="Go To Details" ToolTip="This button will take you to the last step."
                                    OnClick="btnEditJumpToDetails_Click" />
                            </div>
                        </asp:Panel>
                    </asp:WizardStep>
                    <asp:WizardStep ID="WizardStep8" runat="server" Title="Step 2">
                        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                            <ContentTemplate>
                                <!-- *SteveMsg -->
                                In this Step, Please select a Quiz Set and add questions to the Quiz Assignment.
                                <br />
                                <table>
                                    <tr>
                                        <td class="tableLeftHeader">
                                            Filter by Quiz Set:
                                        </td>
                                        <td class="tableItem">
                                            <asp:DropDownList ID="ddlistEditQuestionFilterByQuizSet" runat="server" AutoPostBack="true"
                                                OnSelectedIndexChanged="ddlistEditQuestionFilterByQuizSet_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                </table>
                                <br />
                                <asp:XmlDataSource ID="XmlDataSourceEditQuestions" runat="server" XPath="quizassignment/questions/question" />
                                <asp:Repeater ID="RepeaterEditQuestions" runat="server" DataSourceID="XmlDataSourceEditQuestions">
                                    <HeaderTemplate>
                                        <h4>
                                            Questions</h4>
                                        <table style="min-width: 550px; border-spacing: 0px;">
                                            <tr>
                                                <td class="tableTopHeader" style="width: 30px;">
                                                    Req.
                                                </td>
                                                <td class="tableTopHeader" style="width: 30px;">
                                                    Exc.
                                                </td>
                                                <td class="tableTopHeader" style="width: 0px;">
                                                    <%--Diff.--%>
                                                </td>
                                                <td class="tableTopHeader" style="width: 0px;">
                                                    <%-- Pts.--%>
                                                </td>
                                                <td class="tableTopHeader">
                                                </td>
                                                <td class="tableTopHeader" style="width: 100px;">
                                                    Stats
                                                </td>
                                            </tr>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <tr>
                                            <td style="text-align: center; vertical-align: top;">
                                                <asp:CheckBox ID="chkboxQuizEditRequired" runat="server" CssClass="HiddenText" Text='<%# XPath("@learnobjid").ToString() + ";" + XPath("@id").ToString()%>'
                                                    AutoPostBack="true" Checked='<%# Convert.ToBoolean(XPath("@defaultrequired").ToString()) %>'
                                                    OnCheckedChanged="chkboxQuizEditRequired_CheckedChanged" />
                                                <ajaxToolkit:MutuallyExclusiveCheckBoxExtender ID="MutuallyExclusiveCheckBoxExtender1"
                                                    runat="server" TargetControlID="chkboxQuizEditRequired" Key='<%# XPath("@learnobjid").ToString() + "-" + XPath("@id").ToString() %>' />
                                            </td>
                                            <td style="text-align: center; vertical-align: top;">
                                                <asp:CheckBox ID="chkboxQuizEditExcluded" runat="server" CssClass="HiddenText" Text='<%# XPath("@learnobjid").ToString() + ";" + XPath("@id").ToString()%>'
                                                    AutoPostBack="true" Checked='<%# Convert.ToBoolean(XPath("@excluded").ToString()) %>'
                                                    OnCheckedChanged="chkboxQuizEditExcluded_CheckedChanged" />
                                                <ajaxToolkit:MutuallyExclusiveCheckBoxExtender ID="MutuallyExclusiveCheckBoxExtender2"
                                                    runat="server" TargetControlID="chkboxQuizEditExcluded" Key='<%# XPath("@learnobjid").ToString() + "-" + XPath("@id").ToString() %>' />
                                            </td>
                                            <td style="text-align: center; vertical-align: top;">
                                                <asp:DropDownList ID="ddlistDifficulty" runat="server" ToolTip='<%# XPath("@learnobjid").ToString() + ";" + XPath("@id").ToString()%>'
                                                    AutoPostBack="true" OnSelectedIndexChanged="ddlistDifficulty_SelectedIndexChanged"
                                                    OnDataBound="ddlistDifficulty_DataBound" Visible="false">
                                                    <asp:ListItem Value="easy">Easy</asp:ListItem>
                                                    <asp:ListItem Value="normal">Normal</asp:ListItem>
                                                    <asp:ListItem Value="hard">Hard</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td style="text-align: center; vertical-align: top;">
                                                <asp:DropDownList ID="ddlistPoint" runat="server" ToolTip='<%# XPath("@learnobjid").ToString() + ";" + XPath("@id").ToString()%>'
                                                    OnDataBound="ddlistPoint_DataBound" AutoPostBack="true" OnSelectedIndexChanged="ddlistPoint_SelectedIndexChanged"
                                                    Visible="false">
                                                    <asp:ListItem>1</asp:ListItem>
                                                    <asp:ListItem>2</asp:ListItem>
                                                    <asp:ListItem>3</asp:ListItem>
                                                    <asp:ListItem>4</asp:ListItem>
                                                    <asp:ListItem>5</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td>
                                                <%# XPath("questiontext") %>
                                            </td>
                                            <td style="text-align: center; vertical-align: top;">
                                                <%# GetQuestionStats(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id")), true)%>
                                                /<%# GetQuestionStats(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id")), false) + GetQuestionStats(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id")), true)%>
                                                &nbsp;
                                                <%# GetQuestionStatsPercentage(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id"))).ToString("P")%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            </td>
                                            <td>
                                            </td>
                                            <td>
                                            </td>
                                            <td>
                                            </td>
                                            <td>
                                                <asp:Repeater ID="RepeaterChoices" runat="server" DataSource='<%# XPathSelect("choices/choice") %>'>
                                                    <HeaderTemplate>
                                                        <ul>
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <li>
                                                            <%# XPath(".") %>
                                                            &nbsp;
                                                            <asp:Image ID="imgCorrectAnswer" runat="server" ImageUrl="~/Images/correct_answer.gif"
                                                                Visible='<%# Convert.ToBoolean(XPath("@iscorrectanswer").ToString()) %>' />
                                                        </li>
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        </ul>
                                                    </FooterTemplate>
                                                </asp:Repeater>
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                    <AlternatingItemTemplate>
                                        <tr style="background-color: #EEE;">
                                            <td style="text-align: center; vertical-align: top;">
                                                <asp:CheckBox ID="chkboxQuizEditRequired" runat="server" CssClass="HiddenText" Text='<%# XPath("@learnobjid").ToString() + ";" + XPath("@id").ToString()%>'
                                                    AutoPostBack="true" Checked='<%# Convert.ToBoolean(XPath("@defaultrequired").ToString()) %>'
                                                    OnCheckedChanged="chkboxQuizEditRequired_CheckedChanged" />
                                                <ajaxToolkit:MutuallyExclusiveCheckBoxExtender ID="MutuallyExclusiveCheckBoxExtender1"
                                                    runat="server" TargetControlID="chkboxQuizEditRequired" Key='<%# XPath("@learnobjid").ToString() + "-" + XPath("@id").ToString() %>' />
                                            </td>
                                            <td style="text-align: center; vertical-align: top;">
                                                <asp:CheckBox ID="chkboxQuizEditExcluded" runat="server" CssClass="HiddenText" Text='<%# XPath("@learnobjid").ToString() + ";" + XPath("@id").ToString()%>'
                                                    AutoPostBack="true" Checked='<%# Convert.ToBoolean(XPath("@excluded").ToString()) %>'
                                                    OnCheckedChanged="chkboxQuizEditExcluded_CheckedChanged" />
                                                <ajaxToolkit:MutuallyExclusiveCheckBoxExtender ID="MutuallyExclusiveCheckBoxExtender2"
                                                    runat="server" TargetControlID="chkboxQuizEditExcluded" Key='<%# XPath("@learnobjid").ToString() + "-" + XPath("@id").ToString() %>' />
                                            </td>
                                            <td style="text-align: center; vertical-align: top;">
                                                <asp:DropDownList ID="ddlistDifficulty" runat="server" ToolTip='<%# XPath("@learnobjid").ToString() + ";" + XPath("@id").ToString()%>'
                                                    AutoPostBack="true" Visible="false" OnSelectedIndexChanged="ddlistDifficulty_SelectedIndexChanged"
                                                    OnDataBound="ddlistDifficulty_DataBound">
                                                    <asp:ListItem Value="easy">Easy</asp:ListItem>
                                                    <asp:ListItem Value="normal">Normal</asp:ListItem>
                                                    <asp:ListItem Value="hard">Hard</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td style="text-align: center; vertical-align: top;">
                                                <asp:DropDownList ID="ddlistPoint" runat="server" ToolTip='<%# XPath("@learnobjid").ToString() + ";" + XPath("@id").ToString()%>'
                                                    OnDataBound="ddlistPoint_DataBound" Visible="false" AutoPostBack="true" OnSelectedIndexChanged="ddlistPoint_SelectedIndexChanged">
                                                    <asp:ListItem>1</asp:ListItem>
                                                    <asp:ListItem>2</asp:ListItem>
                                                    <asp:ListItem>3</asp:ListItem>
                                                    <asp:ListItem>4</asp:ListItem>
                                                    <asp:ListItem>5</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td>
                                                <%# XPath("questiontext") %>
                                            </td>
                                            <td style="text-align: center; vertical-align: top;">
                                                <%# GetQuestionStats(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id")), true)%>
                                                /<%# GetQuestionStats(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id")), false) + GetQuestionStats(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id")), true)%>
                                                &nbsp;
                                                <%# GetQuestionStatsPercentage(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id"))).ToString("P")%>
                                            </td>
                                        </tr>
                                        <tr style="background-color: #EEE;">
                                            <td>
                                            </td>
                                            <td>
                                            </td>
                                            <td>
                                            </td>
                                            <td>
                                            </td>
                                            <td>
                                                <asp:Repeater ID="RepeaterChoices" runat="server" DataSource='<%# XPathSelect("choices/choice") %>'>
                                                    <HeaderTemplate>
                                                        <ul>
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <li>
                                                            <%# XPath(".") %>
                                                            &nbsp;
                                                            <asp:Image ID="imgCorrectAnswer" runat="server" ImageUrl="~/Images/correct_answer.gif"
                                                                Visible='<%# Convert.ToBoolean(XPath("@iscorrectanswer").ToString()) %>' />
                                                        </li>
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        </ul>
                                                    </FooterTemplate>
                                                </asp:Repeater>
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                    </AlternatingItemTemplate>
                                    <FooterTemplate>
                                        </table>
                                    </FooterTemplate>
                                </asp:Repeater>
                                <br />
                                <div style="display: none;">
                                    <asp:Button ID="btnEditQuizJumpToAddCustomQuestions" runat="server" Text="Go to Add Custom Questions"
                                        OnClick="btnEditQuizJumpToAddCustomQuestions_Click" />
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </asp:WizardStep>
                    <asp:WizardStep ID="WizardStep9" runat="server" Title="Step 3">
                        <div style="margin-left: 10px;">
                            <asp:Button ID="btnEditAddNewCustomQuestion" runat="server" Text="Add a New Custom Question"
                                Width="250" OnClick="btnEditAddNewCustomQuestion_Click" />
                            <br />
                            <br />
                            <asp:Panel ID="PanelEditAddCustomQuestions" runat="server" Visible="false">
                                <div>
                                    <b>Questions:</b>
                                    <asp:DropDownList ID="ddlistEditCustomQuestionsList" runat="server" AutoPostBack="true"
                                        OnSelectedIndexChanged="ddlistEditCustomQuestionsList_SelectedIndexChanged" />
                                </div>
                                <br />
                                <div style="width: 500px; margin-left: 10px;">
                                    <b>Required: </b>
                                    <asp:CheckBox ID="chkboxEditCustomQuestionRequired" runat="server" />
                                    &nbsp;&nbsp;&nbsp;
                                    <div style="display: none;">
                                        <b>Difficulty:</b>
                                        <asp:DropDownList ID="ddlistEditCustomQuestionDifficulty" runat="server">
                                            <asp:ListItem Value="easy" Text="Easy" />
                                            <asp:ListItem Value="normal" Text="Normal" Selected="True" />
                                            <asp:ListItem Value="hard" Text="Hard" />
                                        </asp:DropDownList>
                                        &nbsp;&nbsp;&nbsp; <b>Point:</b>
                                        <asp:DropDownList ID="ddlistEditCustomQuestionPoint" runat="server">
                                            <asp:ListItem Value="1" Text="1"></asp:ListItem>
                                            <asp:ListItem Value="2" Text="2" Selected="True"></asp:ListItem>
                                            <asp:ListItem Value="3" Text="3"></asp:ListItem>
                                            <asp:ListItem Value="4" Text="4"></asp:ListItem>
                                            <asp:ListItem Value="5" Text="5"></asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                    <br />
                                    <b>Question:</b><br />
                                    <FCKeditorV2:FCKeditor ID="txtEditCustomQuestionText" runat="server" ToolbarSet="Basic"
                                        BasePath="~/fckeditor/" Height="150px" Width="400px" HtmlEncodeOutput="false">
                                    </FCKeditorV2:FCKeditor>
                                    <br />
                                    <b>Choice #1:</b><br />
                                    <asp:TextBox ID="txtEditCustomQuestionChoice1" runat="server" Width="200px" MaxLength="100" /><br />
                                    <asp:CheckBox ID="chkEditCustomQuestionAnswer1" runat="server" />
                                    Is this a correct answer?<br />
                                    <b>Choice #2:</b><br />
                                    <asp:TextBox ID="txtEditCustomQuestionChoice2" runat="server" Width="200px" MaxLength="100" /><br />
                                    <asp:CheckBox ID="chkEditCustomQuestionAnswer2" runat="server" />
                                    Is this a correct answer?<br />
                                    <b>Choice #3:</b><br />
                                    <asp:TextBox ID="txtEditCustomQuestionChoice3" runat="server" Width="200px" MaxLength="100" /><br />
                                    <asp:CheckBox ID="chkEditCustomQuestionAnswer3" runat="server" />
                                    Is this a correct answer?<br />
                                    <b>Choice #4:</b><br />
                                    <asp:TextBox ID="txtEditCustomQuestionChoice4" runat="server" Width="200px" MaxLength="100" /><br />
                                    <asp:CheckBox ID="chkEditCustomQuestionAnswer4" runat="server" />
                                    Is this a correct answer?<br />
                                    <b>Choice #5:</b><br />
                                    <asp:TextBox ID="txtEditCustomQuestionChoice5" runat="server" Width="200px" MaxLength="100" /><br />
                                    <asp:CheckBox ID="chkEditCustomQuestionAnswer5" runat="server" />
                                    Is this a correct answer?<br />
                                    <br />
                                    <br />
                                    <asp:Button ID="btnEditUpdateCustomQuestion" runat="server" Text="Update Question"
                                        Width="200" OnClick="btnEditUpdateCustomQuestion_Click" />
                                    &nbsp;&nbsp;
                                    <asp:Button ID="btnEditDeleteCustomQuestion" runat="server" Text="Delete Question"
                                        Width="200" OnClick="btnEditDeleteCustomQuestion_Click" />
                                    <ajaxToolkit:ConfirmButtonExtender ID="ConfirmButtonExtender2" runat="server" TargetControlID="btnEditDeleteCustomQuestion"
                                        ConfirmText="Are you sure you want to delete the question?" />
                                </div>
                            </asp:Panel>
                        </div>
                    </asp:WizardStep>
                    <asp:WizardStep ID="WizardStep10" runat="server" Title="Step 4">
                        <div style="margin-left: 10px;">
                            <h3>
                                Overview of Quiz Questions</h3>
                            <table>
                                <tr>
                                    <td colspan="2">
                                        <h4>
                                            Filter</h4>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableLeftHeader" style="width: 120px;">
                                        Filter by Quiz Set :
                                    </td>
                                    <td class="tableItem">
                                        <asp:DropDownList ID="ddlistEditQuestionsOverviewFilterByQuizSet" runat="server"
                                            AutoPostBack="True" OnSelectedIndexChanged="ddlistEditQuestionsOverviewFilterByQuizSet_SelectedIndexChanged" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableLeftHeader" style="width: 120px;">
                                        Show :
                                    </td>
                                    <td class="tableItem">
                                        <asp:RadioButtonList ID="rdbtnEditQuestionsOverviewFilter" runat="server" RepeatDirection="Horizontal"
                                            AutoPostBack="True" OnSelectedIndexChanged="rdbtnEditQuestionsOverviewFilter_SelectedIndexChanged">
                                            <asp:ListItem Selected="True" Value="0">All</asp:ListItem>
                                            <asp:ListItem Value="1">Except Excluded</asp:ListItem>
                                            <asp:ListItem Value="2">Only Required</asp:ListItem>
                                            <asp:ListItem Value="3">Only Excluded</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                            </table>
                            <asp:XmlDataSource ID="XmlDataSourceEditQuestionsOverview" runat="server" XPath="quizassignment/questions/question" />
                            <asp:Repeater ID="RepeaterEditQuestionsOverview" runat="server" DataSourceID="XmlDataSourceEditQuestionsOverview">
                                <HeaderTemplate>
                                    <table style="min-width: 540px; border-spacing: 0px;">
                                        <tr>
                                            <td class="tableTopHeader" style="width: 30px;">
                                                Req.
                                            </td>
                                            <td class="tableTopHeader" style="width: 30px;">
                                                Exc.
                                            </td>
                                            <td class="tableTopHeader">
                                            </td>
                                            <td class="tableTopHeader" style="width: 100px;">
                                                Stats
                                            </td>
                                        </tr>
                                </HeaderTemplate>
                                <FooterTemplate>
                                    </table>
                                </FooterTemplate>
                                <ItemTemplate>
                                    <tr>
                                        <td style="text-align: center;">
                                            <asp:CheckBox ID="chkboxEditRequiredOverview" runat="server" Checked='<%# Convert.ToBoolean(XPath("@defaultrequired").ToString()) %>'
                                                CssClass="HiddenText" Enabled="false" Text='<%# XPath("@learnobjid").ToString() + ";" + XPath("@id").ToString()%>' />
                                        </td>
                                        <td style="text-align: center;">
                                            <asp:CheckBox ID="chkboxEditExcludedOverview" runat="server" Checked='<%# Convert.ToBoolean(XPath("@excluded").ToString()) %>'
                                                CssClass="HiddenText" Enabled="false" Text='<%# XPath("@learnobjid").ToString() + ";" + XPath("@id").ToString()%>' />
                                        </td>
                                        <td>
                                            <%# XPath("questiontext") %>
                                        </td>
                                        <td style="text-align: center;">
                                            <%# GetQuestionStats(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id")), true)%>
                                            /<%# GetQuestionStats(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id")), false) + GetQuestionStats(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id")), true)%>
                                            &nbsp;
                                            <%# GetQuestionStatsPercentage(Convert.ToInt32(XPath("@learnobjid")), Convert.ToInt32(XPath("@id"))).ToString("P")%>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                        </td>
                                        <td>
                                        </td>
                                        <td>
                                            <asp:Repeater ID="RepeaterChoices" runat="server" DataSource='<%# XPathSelect("choices/choice") %>'>
                                                <HeaderTemplate>
                                                    <ul>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <li>
                                                        <%# XPath(".") %>
                                                        &nbsp;
                                                        <asp:Image ID="imgCorrectAnswer" runat="server" ImageUrl="~/Images/correct_answer.gif"
                                                            Visible='<%# Convert.ToBoolean(XPath("@iscorrectanswer").ToString()) %>' />
                                                    </li>
                                                </ItemTemplate>
                                                <FooterTemplate>
                                                    </ul>
                                                </FooterTemplate>
                                            </asp:Repeater>
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </div>
                    </asp:WizardStep>
                    <asp:WizardStep ID="WizardStep11" runat="server" Title="Step 5">
                        <div style="margin-left: 10px;">
                            <table style="min-width: 600px; border-spacing: 0px;">
                                <tr>
                                    <td class="tableLeftHeader" style="width: 180px;">
                                        Assignment Name :
                                    </td>
                                    <td class="tableItem">
                                        <asp:TextBox ID="txtEditGeneralQuizAssignmentName" runat="server" Width="400" MaxLength="100" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableLeftHeader">
                                        Assignment Directions :
                                    </td>
                                    <td class="tableItem">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <FCKeditorV2:FCKeditor ID="txtEditGeneralQuizAssignmentDirections" runat="server"
                                            ToolbarSet="ILE_Admin" BasePath="~/fckeditor/" Height="500px" Width="800px" HtmlEncodeOutput="false" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableLeftHeader" style="width: 180px;">
                                        <!-- *SteveMsg -->
                                        Total Number of Questions :
                                    </td>
                                    <td class="tableItem">
                                        <asp:DropDownList ID="ddlistEditQuizGeneralNumberOfQuestionsToGenerate" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableLeftHeader">
                                        <!-- *SteveMsg -->
                                        Number of Attempts :
                                    </td>
                                    <td class="tableItem">
                                        <asp:DropDownList ID="ddlistEditQuizGeneralNumberOfAttempts" runat="server">
                                            <asp:ListItem Value="1">1</asp:ListItem>
                                            <asp:ListItem Value="2">2</asp:ListItem>
                                            <asp:ListItem Value="3">3</asp:ListItem>
                                            <asp:ListItem Value="4">4</asp:ListItem>
                                            <asp:ListItem Value="5">5</asp:ListItem>
                                            <asp:ListItem Value="6">6</asp:ListItem>
                                            <asp:ListItem Value="7">7</asp:ListItem>
                                            <asp:ListItem Value="8">8</asp:ListItem>
                                            <asp:ListItem Value="9">9</asp:ListItem>
                                            <asp:ListItem Value="10">10</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableLeftHeader">
                                        Start Date :
                                    </td>
                                    <td class="tableItem">
                                        <asp:TextBox ID="txtEditQuizGeneralStartDate" runat="server" MaxLength="1" Style="text-align: justify"
                                            ValidationGroup="EditQuizGeneral" />
                                        <asp:ImageButton ID="imgbtnEditQuizGeneralStartDate" runat="server" ImageUrl="~/Images/calendarIcon.png"
                                            CausesValidation="False" />
                                        <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender5" runat="server" TargetControlID="txtEditQuizGeneralStartDate"
                                            Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left" ErrorTooltipEnabled="True"
                                            CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat=""
                                            CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder=""
                                            CultureTimePlaceholder="" Enabled="True" />
                                        <ajaxToolkit:MaskedEditValidator ID="MaskedEditValidator5" runat="server" ControlExtender="MaskedEditExtender5"
                                            ControlToValidate="txtEditQuizGeneralStartDate" EmptyValueMessage="Start Date is required"
                                            InvalidValueMessage="Start Date is invalid" Display="Dynamic" TooltipMessage="Input a start date"
                                            EmptyValueBlurredText="*" InvalidValueBlurredMessage="*" ValidationGroup="EditQuizGeneral"
                                            ErrorMessage="MaskedEditValidator5" />
                                        <ajaxToolkit:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="txtEditQuizGeneralStartDate"
                                            PopupButtonID="imgbtnEditQuizGeneralStartDate" Enabled="True" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*"
                                            ControlToValidate="txtEditQuizGeneralStartDate" Display="Dynamic" ValidationGroup="EditQuizGeneral" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableLeftHeader">
                                        Start Time :
                                    </td>
                                    <td class="tableItem">
                                        <asp:TextBox ID="txtEditQuizGeneralStartDateTime" runat="server" Width="80px" ValidationGroup="EditQuizGeneral" />
                                        <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender6" runat="server" TargetControlID="txtEditQuizGeneralStartDateTime"
                                            Mask="99:99:99" MaskType="Time" AcceptAMPM="True" ErrorTooltipEnabled="True"
                                            CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat=""
                                            CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder=""
                                            CultureTimePlaceholder="" Enabled="True" />
                                        <ajaxToolkit:MaskedEditValidator ID="MaskedEditValidator6" runat="server" ControlExtender="MaskedEditExtender6"
                                            ControlToValidate="txtEditQuizGeneralStartDateTime" IsValidEmpty="False" EmptyValueMessage="Time is required"
                                            InvalidValueMessage="Time is invalid" Display="Dynamic" TooltipMessage="Input a time"
                                            EmptyValueBlurredText="*" InvalidValueBlurredMessage="*" ValidationGroup="EditQuizGeneral"
                                            ErrorMessage="MaskedEditValidator6" />
                                        <span style="font-size: smaller; font-style: italic;">Type 'P' to make it PM and 'A'
                                            to make it AM.</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableLeftHeader">
                                        <!-- *SteveMsg -->
                                        End Date :
                                    </td>
                                    <td class="tableItem">
                                        <asp:TextBox ID="txtEditQuizGeneralEndDate" runat="server" MaxLength="1" Style="text-align: justify"
                                            ValidationGroup="QuizGeneral" />
                                        <asp:ImageButton ID="imgbtnEditQuizGeneralEndDate" runat="server" ImageUrl="~/Images/calendarIcon.png"
                                            CausesValidation="False" />
                                        <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender7" runat="server" TargetControlID="txtEditQuizGeneralEndDate"
                                            Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left" ErrorTooltipEnabled="True"
                                            CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat=""
                                            CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder=""
                                            CultureTimePlaceholder="" Enabled="True" />
                                        <ajaxToolkit:MaskedEditValidator ID="MaskedEditValidator7" runat="server" ControlExtender="MaskedEditExtender7"
                                            ControlToValidate="txtEditQuizGeneralEndDate" EmptyValueMessage="End Date is required"
                                            InvalidValueMessage="End Date is invalid" Display="Dynamic" TooltipMessage="Input a End date"
                                            EmptyValueBlurredText="*" InvalidValueBlurredMessage="*" ValidationGroup="EditQuizGeneral"
                                            ErrorMessage="MaskedEditValidator7" />
                                        <ajaxToolkit:CalendarExtender ID="CalendarExtender4" runat="server" TargetControlID="txtEditQuizGeneralEndDate"
                                            PopupButtonID="imgbtnEditQuizGeneralEndDate" Enabled="True" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="*"
                                            ControlToValidate="txtEditQuizGeneralEndDate" Display="Dynamic" ValidationGroup="EditQuizGeneral" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableLeftHeader">
                                        End Time :
                                    </td>
                                    <td class="tableItem">
                                        <asp:TextBox ID="txtEditQuizGeneralEndDateTime" runat="server" Width="80px" ValidationGroup="EditQuizGeneral" />
                                        <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender8" runat="server" TargetControlID="txtEditQuizGeneralEndDateTime"
                                            Mask="99:99:99" MaskType="Time" AcceptAMPM="True" ErrorTooltipEnabled="True"
                                            CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat=""
                                            CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder=""
                                            CultureTimePlaceholder="" Enabled="True" />
                                        <ajaxToolkit:MaskedEditValidator ID="MaskedEditValidator8" runat="server" ControlExtender="MaskedEditExtender8"
                                            ControlToValidate="txtEditQuizGeneralEndDateTime" IsValidEmpty="False" EmptyValueMessage="Time is required"
                                            InvalidValueMessage="Time is invalid" Display="Dynamic" TooltipMessage="Input a time"
                                            EmptyValueBlurredText="*" InvalidValueBlurredMessage="*" ValidationGroup="EditQuizGeneral"
                                            ErrorMessage="MaskedEditValidator8" />
                                        <span style="font-size: smaller; font-style: italic;">Use '11:59 PM' instead of 12:00
                                            AM for Midnight.</span>
                                    </td>
                                </tr>
                                <tr style="display: none;">
                                    <td class="tableLeftHeader">
                                        <!-- *SteveMsg -->
                                        Send Notification Email :
                                    </td>
                                    <td class="tableItem">
                                        <asp:CheckBox ID="chkboxEditQuizGeneralSendNotificationEmail" runat="server" AutoPostBack="True"
                                            OnCheckedChanged="chkboxEditQuizGeneralSendNotificationEmail_CheckedChanged" />
                                    </td>
                                </tr>
                                <asp:Panel ID="PanelEditQuizGeneralSendNotificationEmailOption" runat="server" Visible="false">
                                    <tr>
                                        <td colspan="2" style="padding-left: 20px;">
                                            <table>
                                                <tr>
                                                    <td class="tableLeftHeader">
                                                        When Quiz Starts :
                                                    </td>
                                                    <td class="tableItem">
                                                        <asp:CheckBox ID="chkboxEditQuizGeneralSendNotificationEmailQuizStart" runat="server" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="tableLeftHeader">
                                                        When Quiz Ends :
                                                    </td>
                                                    <td class="tableItem">
                                                        <asp:CheckBox ID="chkboxEditQuizGeneralSendNotificationEmailQuizEnd" runat="server" />
                                                        &nbsp;&nbsp;
                                                        <asp:TextBox ID="txtEditQuizGeneralSendNotificationEmailQuizEndHours" runat="server"
                                                            MaxLength="2" Width="30px" Text="24" />
                                                        hours before.
                                                        <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server"
                                                            FilterType="Numbers" TargetControlID="txtEditQuizGeneralSendNotificationEmailQuizEndHours"
                                                            Enabled="True" />
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="*"
                                                            ControlToValidate="txtEditQuizGeneralSendNotificationEmailQuizEndHours" ValidationGroup="EditQuizGeneral" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </asp:Panel>
                                <tr style="display: none;">
                                    <td class="tableLeftHeader">
                                        Send Quiz Results :
                                    </td>
                                    <td class="tableItem">
                                        <asp:CheckBox ID="chkboxEditQuizGeneralSendQuizResult" runat="server" />&nbsp; <span
                                            style="font-size: smaller; font-style: italic;">When checked, student quiz results
                                            will be automatically sent after the due date.</span>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <br />
                            <asp:CheckBox ID="chkboxEditQuizManualMode" runat="server" Text="Manual Mode" OnCheckedChanged="chkboxEditQuizManualMode_CheckedChanged"
                                Font-Bold="true" AutoPostBack="true" />
                            <asp:Panel ID="PanelEditQuizManualMode" runat="server" Visible="false">
                                <h4>
                                    Manual Mode</h4>
                                <div class="indent20">
                                    <asp:TextBox ID="txtEditQuizManualMode" runat="server" TextMode="MultiLine" Rows="10"
                                        Width="500" />
                                </div>
                            </asp:Panel>
                            <br />
                            <br />
                            <asp:Button ID="btnQuizDelete" runat="server" Text="Delete Quiz Assignment" OnClick="btnQuizDelete_Click" />
                            <ajaxToolkit:ConfirmButtonExtender ID="ConfirmButtonExtender3" runat="server" ConfirmText="Are you sure you want to 'delete' this quiz assignment?"
                                TargetControlID="btnQuizDelete">
                            </ajaxToolkit:ConfirmButtonExtender>
                        </div>
                    </asp:WizardStep>
                </WizardSteps>
                <NavigationButtonStyle CssClass="fancyButton" ForeColor="Black" />
            </asp:Wizard>
        </div>
    </asp:Panel>
</asp:Content>
